import {addressData} from '../../../data/address'
const app=getApp();
Page({
  data: {
    address:'',
    rname:'',
    phone:'',
    goods:[],
  },
  onLoad() {
    this.setData({
      address: addressData[0].area+addressData[0].address,
      rname: addressData[0].rname,
      phone: addressData[0].phone,
      goods:app.gData.goodsForRefund
    });
  },
  clickBtn(e) {
    let name=e.detail.name;
    //console.log('clickBtn:',name);
    let url;
    if(name=='修改运单号')url='/pages/usercenter/after-selling/tracking-edit/index';
    if(name=='查看物流')url='/pages/usercenter/after-selling/tracking-info/index';
    if(url)wx.navigateTo({url: url});
  }
})